package com.zelix;

import java.io.*;
import java.util.*;

public class qu extends kt
        implements ke {

    private boolean k;
    private int l;
    private td m;
    private ce n;
    private ks o;
    private static String z[];

    qu(kt kt1, int i) {
        super(kt1);
        k = true;
        l = i;
    }

    qu(kt kt1, int i, ce ce1) {
        super(kt1);
        k = true;
        l = i;
        n = ce1;
    }

    qu(kt kt1, int i, String s1, lm lm1, Vector vector) {
        super(kt1);

        String s2;
        label0:
        {
            k = true;
            l = i;
            if (s1.startsWith("L") && s1.endsWith(";")) {
                s2 = s1.substring(1, s1.length() - 1);
            } else {
                s2 = s1;
            }
        }
        o = lm1.b(s2, vector);
    }

    qu(kt kt1, jb jb, qy qy1, PrintWriter printwriter)
            throws IOException {

        super(kt1);
        k = true;
        l = jb.readUnsignedByte();
        switch (l) {
            case 0: // '\0'
            case 1: // '\001'
            case 2: // '\002'
            case 3: // '\003'
            case 4: // '\004'
            case 5: // '\005'
            case 6: // '\006'
            default:
                break;

            case 7: // '\007'
                int i = jb.readUnsignedShort();
                is is1 = a(i);
                if (is1 instanceof ks) {
                    o = (ks) is1;
                } else {
                    k = false;
                    printwriter.println(i() + z[4] + z[2] + z[3]);
                }
                break;

            case 8: // '\b'
                int j = jb.readUnsignedShort();
                qy1.b(kt.g.a(j), this);
                break;
        }
    }

    int q() {
        switch (l) {
            case 0: // '\0'
            case 1: // '\001'
            case 2: // '\002'
            case 3: // '\003'
            case 4: // '\004'
            case 5: // '\005'
            case 6: // '\006'
                return 1;

            case 7: // '\007'
                return 3;

            case 8: // '\b'
                return 3;
        }
        return 1;
    }

    public static qu[] a(r6 r6, wn awn[], lm lm1, Vector vector, boolean flag) {
        ArrayList arraylist;
        int i;
        arraylist = new ArrayList(awn.length);
        for (i = 0; i < awn.length; i++) {
            wn wn1 = awn[i];
            if (!wn1.f()) {
                qu qu1 = null;
                if (wn1 == wn.m)
                    qu1 = new qu(r6, 0);
                else if (wn1 == wn.e || wn1 == wn.g || wn1 == wn.h || wn1 == wn.i)
                    qu1 = new qu(r6, 1);
                else if (wn1 == wn.k)
                    qu1 = new qu(r6, 2);
                else if (wn1 == wn.l)
                    qu1 = new qu(r6, 3);
                else if (wn1 == wn.j)
                    qu1 = new qu(r6, 4);
                else if (wn1 == wn.n)
                    qu1 = new qu(r6, 5);
                else if (wn1 == wn.n)
                    qu1 = new qu(r6, 5);
                else if (wn1.e())
                    qu1 = new qu(r6, 7, wn1.d(), lm1, vector);
                else if (wn1.g())
                    qu1 = new qu(r6, 6);
                else
                    qu1 = new qu(r6, 8, ((xn) wn1).h());
                arraylist.add(qu1);
            }
        }
        ListIterator listiterator = arraylist.listIterator();
        while (listiterator.hasNext()) {
            listiterator.next();
        }
        while (listiterator.hasPrevious()) {
            qu qu2 = (qu) listiterator.previous();
            if (!qu2.r())
                break; /* Loop/switch isn't completed */
            listiterator.remove();
        }
        int j = arraylist.size();
        qu aqu[] = new qu[j];
        arraylist.toArray(aqu);
        return aqu;
    }

    public String a() {
        return z[0];
    }

    public boolean r() {
        return l == 0;
    }

    public boolean a(qu qu1) {
        if (l == qu1.l) {
            if (l == 7)
                return o.b().equals(qu1.o.b());
            if (l == 8)
                return m.q() == qu1.m.q();
            else
                return true;
        } else {
            return false;
        }
    }

    boolean s() {
        return k;
    }

    void b(HashSet hashset) {
        if (l == 7)
            hashset.add(o);
    }

    public void a(Integer integer, td td1) {
        m = td1;
    }

    protected void a(DataOutputStream dataoutputstream)
            throws IOException {
        label0:
        {
            lx.b(k, z[1] + l());
            dataoutputstream.writeByte(l);
            switch (l) {
                case 0: // '\0'
                case 1: // '\001'
                case 2: // '\002'
                case 3: // '\003'
                case 4: // '\004'
                case 5: // '\005'
                case 6: // '\006'
                default:
                    break;

                case 7: // '\007'
                    dataoutputstream.writeShort(o.j());
                    break;

                case 8: // '\b'
                    if (m != null) {
                        dataoutputstream.writeShort(m.q());
                    } else {
                        dataoutputstream.writeShort(n.q());
                    }
                    break;
            }
        }
    }

    private static String z(char ac[]) {
        for (int i = 0; i < ac.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x7b;
                    break;
                case 1:
                    key = 53;
                    break;
                case 2:
                    key = 43;
                    break;
                case 3:
                    key = 39;
                    break;
                default:
                    key = 92;
                    break;
            }
            ac[i] ^= key;
        }
        return new String(ac).intern();
    }

    static {
        String as[];
        as = new String[5];
        as[0] = "(AJD76T[\007\b\002EN";
        as[1] = "2[]F0\022Q\013t(\032V@j=\013\025nI(\tL\013N2[";
        as[2] = "2[]F0\022Q\013t(\032V@j=\013\025JS(\t\\IR(\036";
        as[3] = "[\035h\016";
        as[4] = "[\017\013";
        for (int i = 0; i < as.length; i++) {
            as[i] = z(as[i].toCharArray());
        }
        z = as;

    }
}